package aes.general;

import java.io.Serializable;


/**
 * The Class Msg. The General Message class. Serializable . Used to work with OCSF.
 * 					 Contains the General object and specific MSG type as Identifier
 */
public class Msg implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	protected Object msg;
	

	protected String RequestType;
	

	/**
	 * Instantiates a new Message.
	 *
	 * @param msg the Object to be transfered via OCSF
	 * @param requestType the Identifier of current object
	 */
	public Msg(Object msg, String requestType) {
		super();
		this.msg =  msg;
		this.RequestType = requestType;
	}

	/**
	 * Instantiates a new Message. Default Constructor
	 */
	public Msg() {
		super();
		this.msg = null;
		this.RequestType = null;
	}

	/**
	 * Gets the Object
	 *
	 * @return the Message  
	 */
	public Object getMsg() {
		return msg;
	}

	/**
	 * Sets the Message.
	 *
	 * @param msg the new Message
	 */
	public void setMsg(Object msg) {
		this.msg = msg;
	}

	/**
	 * Gets the request type.
	 *
	 * @return the request type
	 */
	public String getRequestType() {
		return RequestType;
	}

	/**
	 * Sets the request type.
	 *
	 * @param requestType the new request type
	 */
	public void setRequestType(String requestType) {
		RequestType = requestType;
	}

	/**
	 * Returns the String representation of Message.
	 *
	 */
	public String toString() {
		return msg.toString();
	}

}
